const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 简化token获取
  token: state => state.user.token,
  // 简化用户信息 获取
  userInfo: state => state.user.userInfo,

  isLogin: state => (state.user.userInfo.userId ? true : false)
}
export default getters
